package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.OrderPutDetailed;
import cn.stylefeng.guns.modular.order.model.params.OrderPutDetailedParam;
import cn.stylefeng.guns.modular.order.model.result.OrderPutDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 入库订单明细表 服务类
 */
public interface OrderPutDetailedService extends IService<OrderPutDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    void add(OrderPutDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    void delete(OrderPutDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    void update(OrderPutDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    OrderPutDetailedResult findBySpec(OrderPutDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-03
     */
    List<OrderPutDetailedResult> findListBySpec(OrderPutDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-03
     */
     LayuiPageInfo findPageBySpec(OrderPutDetailedParam param,String condition);

	List<OrderPutDetailedResult> findListGroupGoodsidBySpec(OrderPutDetailedParam dParam);
	
	/**
	 * 批量保存List
	 * @param List<OrderPutDetailedParam>
	 * @return
	 */
	boolean saveBatchList(List<OrderPutDetailedParam> list);

	/**
	 * 查询商品list
	 * @param putDetailedParam
	 * @return
	 */
	List<OrderPutDetailedResult> totalListBySpec(OrderPutDetailedParam putDetailedParam);

	List<OrderPutDetailedResult> totalListByGandPSpec(OrderPutDetailedParam putDetailedParam);

	List<OrderPutDetailedResult> findListBySpec2(OrderPutDetailedParam orderPutDetailedParam);

}
